#include "junix.h"
#include <boost/function.hpp>

using namespace std;

void f(int i)
{
	cout<<i<<endl;
}

int main(int argc, char **argv)
{
	boost::function<void(int) > fn;
	fn = &f;
	fn = f;

	fn(888);

	boost::function1<void, int> fn2;
	fn2 = f;
	fn2(888);

	fn2 = fn;
	fn2(888);
}
